\documentclass[tikz,border=2mm]{standalone}
\usepackage{array,amsmath,mathptmx,xcolor,pifont}
\usepackage{bbding}
\usepackage[UTF8]{ctex}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\usepackage{tikz-cd}
\usepackage{tikz,graphicx,subfig,caption} % Required for drawing custom shapes
\usetikzlibrary{fit,matrix,chains,arrows,shapes,positioning,arrows.meta,chains,shadows,shapes.callouts,decorations.text,shapes.symbols,shapes.misc, positioning,decorations.pathreplacing,calc}

% 额外添加
\usepackage{indentfirst}
\usepackage{diagbox}

\begin{document}
	\begin{tikzpicture}[>=latex,every node/.style={anchor=south west,,inner sep=0,fill=white}]
		\node(left)[anchor=north,draw, thick,fill=yellow!20,align=left,inner sep=0.3em] at (0,0){  
			$G'(S'):$
		};
		\node(right)[anchor=north,draw, thick,fill=yellow!20,align=left,inner sep=0.3em] at ([xshift=5.5em,yshift=1em]left.east){  
			$S' \to S(0)$\ ;\\
			$S \to aAd\  (1)\ |\ aec \ (2)$\\
			$S \to bAc\  (3)\ |\ bed \ (4)$\\
			$A \to e \ (5)$
		};
	\end{tikzpicture}
\end{document}